<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">

<head>
    <title th:text="${pageTitle}"></title>
    <div data-th-replace="layout/head-top"></div>
</head>
<body>
    <div class="m-t-lg">
        <dl class="dl-horizontal">
            <dt>角色名称：</dt>
            <dd class="m-r"><span class="fs12 c-4e" th:text="${sysRole['roleName']}"></span></dd>
        </dl>
        <div class="hr-line-dashed"></div>
        <dl class="dl-horizontal">
            <dt>角色职责：</dt>
            <dd class="m-r"><span class="fs12 c-4e" th:text="${sysRole['depict']}"></span></dd>
        </dl>
        <div class="hr-line-dashed"></div>

        <!--<th:block th:if="${#lists.isEmpty(sysRole['subjects'])}">
            <dl class="dl-horizontal">
                <dt>专业/科目：</dt>
                <dd class="m-r"><span class="fs12 c-4e">—/—</span></dd>
            </dl>
            <div class="hr-line-dashed"></div>
        </th:block>
        <th:block th:if="!${#lists.isEmpty(sysRole['subjects'])}">
            <dl class="dl-horizontal" th:each="subject : ${sysRole['subjects']}">
                <dt th:text="${subject['subjectName']}+':'"></dt>
                <dd class="m-r">
                    <ul class="tag-list clearfix">
                        <li class="ml10 mb10" th:each="s : ${subject['childSubjectList']}" th:if="${subject['childSubjectList']}!=null and ${#lists.size(subject['childSubjectList'])}>0">
                            <span><i class="fa fa-circle text-info"></i> <span th:text="${s['subjectName']}"></span></span>
                        </li>
                        <li class="ml10 mb10" th:if="${subject['childSubjectList']}==null or ${#lists.size(subject['childSubjectList'])}==0">
                            <span>
                                <span th:text="${subject['subjectName']}+'专业无子级科目'"></span>
                            </span>
                        </li>
                    </ul>
                </dd>
            </dl>
            <div class="hr-line-dashed"></div>
        </th:block>-->
        <th:block th:if="${#lists.isEmpty(sysRole['sysFunctionList'])}">
            <dl class="dl-horizontal">
                <dt>系统权限：</dt>
                <dd class="m-r"><span class="fs12 c-4e">—</span></dd>
            </dl>
            <div class="hr-line-dashed"></div>
        </th:block>
        <th:block th:if="!${#lists.isEmpty(sysRole['sysFunctionList'])}">
            <dl class="dl-horizontal" th:each="function : ${sysRole['sysFunctionList']}">
                <dt th:text="${function.functionName}+'权限：'"></dt>
                <dd class="m-r">
                    <ul class="tag-list clearfix">
                        <li class="ml10 mb10" th:each="child : ${function['childSysFunctionList']}" th:if="${function['childSysFunctionList']}!=null and ${#lists.size(function['childSysFunctionList'])}>0">
                            <span>
                                <i class="fa fa-circle text-danger"></i>
                                <span th:text="${child['functionName']}"></span>
                            </span>
                        </li>
                        <li class="ml10 mb10" th:if="${function['childSysFunctionList']}==null or ${#lists.size(function['childSysFunctionList'])}==0">
                            <span>
                                <span th:text="${function['functionName']}+'权限无子级权限'"></span>
                            </span>
                        </li>
                    </ul>
                </dd>
            </dl>
            <div class="hr-line-dashed"></div>
        </th:block>
    </div>
    <div data-th-replace="layout/head-footer"></div>
</body>
</html>
